package com.mbc.hr.entities;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name="HR_EmployeeFingerPrintDeviceJunction")
@NamedQueries({
	@NamedQuery(name="EmployeeFingerPrintDeviceJunction.findByDeviceID",query="SELECT jun FROM EmployeeFingerPrintDeviceJunction jun where jun.deviceID = :deviceID"),
	@NamedQuery(name="EmployeeFingerPrintDeviceJunction.findEmployeeID",query="SELECT jun FROM EmployeeFingerPrintDeviceJunction jun where jun.employeeID = :employeeID"),
	@NamedQuery(name="EmployeeFingerPrintDeviceJunction.deleteByDeviceID",query="DELETE FROM EmployeeFingerPrintDeviceJunction jun where jun.deviceID = :deviceID"),
	@NamedQuery(name="EmployeeFingerPrintDeviceJunction.deleteByEmployeeID",query="DELETE FROM EmployeeFingerPrintDeviceJunction jun where jun.employeeID = :employeeID"),
	@NamedQuery(name="EmployeeFingerPrintDeviceJunction.findByEmployeeIDNDeviceID",query="SELECT jun FROM EmployeeFingerPrintDeviceJunction jun where jun.employeeID = :employeeID and jun.deviceID = :deviceID"),
	@NamedQuery(name="EmployeeFingerPrintDeviceJunction.deleteByEmployeeIDNDeviceID",query="DELETE FROM EmployeeFingerPrintDeviceJunction jun where jun.employeeID = :employeeID and jun.deviceID = :deviceID")
})
public class EmployeeFingerPrintDeviceJunction implements Serializable {
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private long junctionID;
	private long deviceID;
	private long employeeID;
	private boolean registered;
	
	public long getJunctionID() {
		return junctionID;
	}
	public void setJunctionID(long junctionID) {
		this.junctionID = junctionID;
	}
	public long getDeviceID() {
		return deviceID;
	}
	public void setDeviceID(long deviceID) {
		this.deviceID = deviceID;
	}
	public long getEmployeeID() {
		return employeeID;
	}
	public void setEmployeeID(long employeeID) {
		this.employeeID = employeeID;
	}
	public boolean isRegistered() {
		return registered;
	}
	public void setRegistered(boolean registered) {
		this.registered = registered;
	}
}
